# coding:utf-8
"""
动态相关测试用例配置
"""
__author__ = 'jiaoshupeng'
from ..parameters.ia_configure import account_live,account_vice
from conf_public import u_uid,search_name
uid = account_live[2]
vice_uid = account_vice[2]

#定义模块


#接口定义
users = "/users/%s"%uid
passby_users = '/users/%s?from=passby_rec'%u_uid
nearby = '/users?latitude=39.89989067925347&limit=60&longitude=116.4705615234375&sort_by=nearby&start=0'#身边-附近下拉刷新数据
meeting = '/users?latitude=39.89988850911458&limit=60&longitude=116.470540093316&sort_by=recommend&start=0'#身边-遇见下拉刷新
hot = '/users?latitude=39.89988850911458&limit=60&longitude=116.470540093316&sort_by=rank&start=0'#身边-热门下拉刷新

nearby_first='/users?column=3&latitude=39.89985487196181&limit=60&longitude=116.4705189344618&next_min_dist=7.2068287118233&sort_by=nearby&start=60' #身边-附近第一次上拉刷新
meeting_first = '/users?latitude=39.89989230685764&limit=60&longitude=116.4704945203993&sort_by=recommend&start=60' #身边-遇见第一次上拉刷新
hot_first = '/users?latitude=39.89989230685764&limit=60&longitude=116.4704945203993&sort_by=rank&start=60' #身边-热门第一次上拉刷新


passby = '/users/%s/location?http_method_override=PUT'%uid #身边-附近刷新
more = '/users/%s/more/ios'%uid #点击更多按钮
tags = '/users/tags' #获取用户标签
change_tags = '/users/%s?http_method_override=PUT'%uid #修改标签
followlist = '/users/%s/followed?page=1'%uid #关注列表
fanslist = '/users/%s/followers?page=1'%uid #粉丝列表
friendslist = '/users/%s/friends?page=1d&size=20d'%uid #好友列表
follow = '/users/%s/followed/%s?from=nearby'%(uid,u_uid) #关注某人
followdel = '/users/%s/followed/%s?http_method_override=DELETE'%(uid,u_uid) #取消关注某人
block = '/users/%s/blacklist/%s'%(uid,u_uid) #将某人加入黑名单
block_vice = '/users/%s/blacklist/%s'%(vice_uid,u_uid) #将某人加入黑名单
blacklist = '/users/%s/blacklist?offset=0&size=20'%uid #黑名单列表
unblock = '/users/%s/blacklist/%s?http_method_override=DELETE'%(uid,u_uid) #取消拉黑
interest = '/users/%s/interest?page=1&size=20'%uid #推荐用户
search = '/users/search?keywords=%s&page=1&size=20'%search_name
visitor = '/users/%s/visitors?page=1'%uid #身边-看过我的人
visited = '/users/%s/visited?page=1'%uid #身边-我看过别人的
verify = '/users/%s/verify'%uid #获取确认信息
setting = '/users/%s/setting?http_method_override=PUT'%uid #隐私设置-别人能看我关注的人
notes = '/users/%s/notes'%uid #修改备注
setting_get = '/users/%s/setting'%uid #获取setting
apnssound = '/users/%s/apnssound?http_method_override=PUT'%uid #提醒设置关闭开启声音
live_push = '/users/%s/setting?http_method_override=PUT'%uid
#post数据
p_users = {}
p_passby = {
	"longitude": "116.4705289713542",
	"latitude": "39.89986626519097"
}
p_change_tags = {
	"tags": "1_3,3_2,3_3,5_2"
}
p_description = {
	"description": "测试数据,仅供参考"
}
p_description_unlegal = {
	"description": "419"
}
p_name = {
	"name":"419"
}
p_name_unlegal = {
	"name":"¥¥¥"
}
p_name_long = {
	"name":"uuuuuuuuuuuuuuuuuuuuuuu"
}
p_name_null = {
	"name":""
}
p_name_exist = {
	"name":"s"
}
p_setting_follow1 = {
	"is_access_follows": "1"
}
p_setting_follow0 = {
	"is_access_follows": "0"
}
p_setting_groups1 = {
	"is_access_groups": "1"
}
p_setting_groups0 = {
	"is_access_groups": "1"
}
p_notes ={
	"uid": "%s"%u_uid,
	"note": "notes"
}
p_apnssound = {
	"sound": "default"
}
p_live_push1 = {
	"is_live_push":"1"
}
p_live_push0 = {
	"is_live_push":"0"
}
#写case
case_users = [users,'个人主页','主态个人主页']
case_passby_users = [passby_users,'个人主页','身边-附近客态查看个人主页']
case_nearby = [nearby,'身边-附近','身边-附近下拉刷新获取数据']
case_meeting = [meeting,'身边-遇见','身边-遇见下拉刷新获取数据']
case_hot =[hot,'身边-热门','身边-热门下拉刷新获取数据']
case_nearby_first = [nearby_first,'身边-附近','身边-附近上拉第一次刷新获取数据']
case_meeting_first = [meeting_first,'身边-遇见','身边-遇见上拉第一次刷新获取数据']
case_hot_first =[hot_first,'身边-热门','身边-热门上拉第一次刷新获取数据']
case_passby = [passby,'身边-附近','身边-附近接口']
case_more = [more,'更多接口','点击更多按钮']
case_tags = [tags,'用户标签','获取用户标签']
case_change_tags = [change_tags,'修改标签','修改标签']
case_description = [change_tags,'编辑签名','编辑签名,输入正确签名']
case_description_unlegal = [change_tags,'编辑签名','编辑签名,输入不合法签名,提示签名不合法']
case_name = [change_tags,'修改昵称','昵称使用违规词,提示昵称不能使用违规词,请重新输入']
case_name_unlegal = [change_tags,'修改昵称','昵称使用不支持字符,提示昵称目前仅支持中文、字母、数字和减号。']
case_name_long = [change_tags,'修改昵称','昵称超过20个字符,提示昵称不可超过20个字符，1个汉字为2个字符。']
case_name_null = [change_tags,'修改昵称','昵称为空,提示昵称不能为空']
case_name_exist = [change_tags,'修改昵称','修改后的昵称已存在时,提示昵称已存在']
case_followlist = [followlist,'关注列表','关注列表']
case_fanslist = [fanslist,'粉丝列表','粉丝列表']
case_friendslist = [friendslist,'好友列表','好友列表']
case_follow = [follow,'关注好友','关注好友']
case_followdel = [followdel,'取消关注好友','取消关注']
case_block = [block,'拉黑用户','拉黑用户']
case_block_full = [block_vice,'拉黑用户','黑名单已满的情况下再拉黑用户提示您的黑名单表已满']
case_block_follow = [follow,'关注已拉黑的好友',"关注已被自己拉黑的用户,提示'对方已在您的黑名单中,不能添加关注'"]
case_blacklist = [blacklist,'黑名单','黑名单']
case_unblock = [unblock,'取消拉黑','取消拉黑']
case_interest = [interest, '感兴趣的人','感兴趣的人']
case_search = [search,'用户搜索','用户搜索']
case_visitor = [visitor,'来访','来访-看过我的人']
case_visited = [visited, '我看过的人','我看过的人']
case_verify = [verify,'获取认证信息','获取认证信息']
case_setting = [setting, '隐私设置','隐私设置-别人能看我关注的人']
case_notes = [notes,'设置备注','设置备注']
case_apnssound = [apnssound,'提醒设置','声音']
case_live_push = [live_push,'提醒设置','直播提醒']



#校验数据
users_code = [
    ['self','',{'code':200}],
]
users_dj_users = [
	['self','',{'code':200}],
	['self','data',{'uid':uid}]
]
# 个人签名不合法
users_code_4031001 = [
    ['self','',{'code':4031001}],
]
users_dj_live_push1 = [
	['self','',{'code':200}],
	# ['self','data',{'is_live_push':'1'}]
]
users_dj_live_push0 = [
	['self','',{'code':200}],
	# ['self','data',{'is_live_push':'0'}]
]
users_code_403900 = [
	['self', '', {'code': 403900}]
]
users_code_403902 = [
	['self', '', {'code': 403902}]
]
# 4036410 => '昵称不能使用违规词，请重新输入。',
users_code_4036410 = [
	['self', '', {'code': 4036410}]
]
# 4036409 => '昵称目前仅支持中文、字母、数字和减号。',
users_code_4036409= [
	['self', '', {'code': 4036409}]
]
# 4036408 => '昵称不可超过20个字符，1个汉字为2个字符。',
users_code_4036408= [
	['self', '', {'code': 4036408}]
]
# 4036411 => '昵称不能为空',
users_code_4036411= [
	['self', '', {'code': 4036411}]
]
# code=403302 昵称已存在
users_code_403302= [
	['self', '', {'code': 403302}]
]

#配置URL参数